home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MMM Clear.xpl < prev    next >
Text File  |  2000-04-03  |  2KB  |  66 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="5"
  3. "COUNT"="1"
  4. "UIPATH"="Program Options\Other Programs\Magic Mail Monitor"
  5. "NAME"="Clear Items"
  6. "VERSION"="1.03"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Clear recent file list"
  9. "TEXT 2"="Clear Radio Links"
  10. "TEXT 3"="C"
  11. "TEXT 4"="D"
  12. "DESCRIPTION 1"="If you do not want that other people can see the items you have saved, click the button."
  13. "DESCRIPTION 2"="Magic Mail can be obtained at http://www.geocities.com/SiliconValley/Vista/2576/magic.html"
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18. "COMMENT 2"="Thanks to CptSiskoX for his help!"
  19.  
  20. sP="HKEY_CURRENT_USER\Software\Orient Lab\Magic Mail Monitor\Recent File List\"
  21.  
  22. 'sP2a="HKCU\Software\Microsoft\MediaPlayer\Radio\MRUList\"
  23. 'sP2b="HKCU\Software\Microsoft\MediaPlayer\Radio\MRUList\Radio_Station_Count"
  24.  
  25. Sub Plugin_Initialize 
  26.   If RegPathExists(sP)=false then
  27.      Disable()
  28.   end if 
  29. End Sub
  30.  
  31. Sub Plugin_CheckData(ElementIndex)
  32. End Sub
  33.  
  34. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  if ElementIndex=1 then     
  36.     for l=1 to 5
  37.         s="File" & l
  38.         v=RegReadValue(sP & s)
  39.         
  40.         If IsEmpty(v)=false then
  41.            Call RegDeleteValue(sP & S)
  42.         end if
  43.     Next
  44.  
  45.     Call MsgInformation("Cleared!")
  46.  end if
  47.  
  48.  
  49.  if ElementIndex=2 then 
  50.     'i=RegEnumValues(sp2a)
  51.     'for l=1 to i
  52.     '    Call RegDeleteValue(sp2a & RegEnumElement(l))
  53.     'Next
  54.     'Call RegWriteValue(sp2b,0,2)
  55.  
  56.  
  57.     'Call MsgInformation("Radio links cleared")
  58.  end if
  59.  
  60.  
  61.  
  62. End Sub
  63.  
  64. Sub Plugin_Terminate 
  65. End Sub
  66.